<!DOCTYPE html>
<html>
<head>
    <meta charset="UTF-8">
    <title><{$title}></title>
    <meta content='width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no' name='viewport'>
    <link href="/public/static/css/bootstrap.min.css" rel="stylesheet" type="text/css" />
    <link href="/public/static/css/font-awesome.min.css" rel="stylesheet" type="text/css" />
    <link href="/public/static/plugin/AdminLTE/css/AdminLTE.css" rel="stylesheet" type="text/css" />

    <!-- add new calendar event modal -->

    <script src="/public/static/js/jquery.min.js" type="text/javascript"></script>
    <script src="/public/static/js/bootstrap.min.js" type="text/javascript"></script>
    <script src="/public/static/js/jquery.ui.min.js" type="text/javascript"></script>
    <!-- AdminLTE App -->
    <script src="/public/static/plugin/AdminLTE/js/AdminLTE/app.js" type="text/javascript"></script>
</head>
<body class="skin-blue">
<!-- header logo: style can be found in header.less -->

<header class="header">
    <a href="/" class="logo"><i class="fa fa-home"></i> 系统管理</a>
    <!-- Header Navbar: style can be found in header.less -->
    <nav class="navbar navbar-static-top" role="navigation">
        <!-- Sidebar toggle button-->
        <a href="#" class="navbar-btn sidebar-toggle" data-toggle="offcanvas" role="button">
            <span class="sr-only">Toggle navigation</span>
            <span class="icon-bar"></span>
            <span class="icon-bar"></span>
            <span class="icon-bar"></span>
        </a>
        <div class="navbar-right">
            <ul class="nav navbar-nav">
                <li>
                    <a href="/">
                        <i class="glyphicon glyphicon-log-in"></i>
                        <span>返回后台</span>
                    </a>
                </li>
                <li>
                    <a href="/home/?r=site/logout">
                        <i class="glyphicon glyphicon-log-out"></i>
                        <span>退出登录</span>
                    </a>
                </li>
            </ul>
        </div>
    </nav>
</header>

<div class="wrapper row-offcanvas row-offcanvas-left">
    <!-- Left side column. contains the logo and sidebar -->
    <aside class="left-side sidebar-offcanvas">
        <!-- sidebar: style can be found in sidebar.less -->
        <section class="sidebar">
            <!-- Sidebar user panel -->
            <div class="user-panel">
                <div class="pull-left image">
                    <img src="/public/static/plugin/AdminLTE/img/avatar333.png" class="img-circle" alt="User Image" />
                </div>
                <div class="pull-left info">
                    <p>Hello, <{$beforeAction.User.UserName}></p>

                    <a href="#"><i class="fa fa-circle text-success"></i> Online</a>
                </div>
            </div>

            <!-- sidebar menu: : style can be found in sidebar.less -->
            <ul class="sidebar-menu">
                <{foreach from=$beforeAction.Menu item=item key=key}>
                <{if is_array($item)}>
                <li class="treeview active">
                    <a href="javascript:;">
                        <i class="fa "></i>
                        <span><{$key}></span>
                        <i class="fa fa-angle-left pull-right"></i>
                    </a>
                    <ul class="treeview-menu">
                        <{foreach from=$item.include item=ii key=kk}>
                        <li><a href="<{$ii.url}>" <{if $ii.text === $beforeAction.BreadCrumb}>class="on"<{/if}>><i class="fa fa-angle-double-right"></i><{$ii.text}></a></li>
                        <{/foreach}>
                    </ul>
                </li>
                <{/if}>
                <{/foreach}>
            </ul>
        </section>
        <!-- /.sidebar -->
    </aside>

    <style>
        .skin-blue .treeview-menu > li > a.on{
            color: #357ca5;
            font-weight: bold;
        }
    </style>

    <script>
        $(function(){

        });
    </script>

    <!-- Right side column. Contains the navbar and content of the page -->
    <aside class="right-side">
        <!-- Content Header (Page header) -->
        <section class="content-header">
            <h1>
                <{$beforeAction.Title}>
                <small><{$beforeAction.SubTitle}></small>
            </h1>
            <ol id="breadcrumb" class="breadcrumb">
                <{foreach from=$beforeAction.Menu item=item key=key}>
                    <{if isset($item[$beforeAction.BreadCrumb])}>
                        <li>
                            <i class="fa <{AccAuth::menuIcon($key)}>"></i>
                            <{$key}>
                        </li>
                        <li class="active"><{$beforeAction.BreadCrumb}></li>
                    <{/if}>
                <{/foreach}>
            </ol>
        </section>

        <!-- Main content -->
        <section class="content"><{$content nofilter}></section><!-- /.content -->
    </aside><!-- /.right-side -->
</div><!-- ./wrapper -->
</body>
</html>
